package link.cocoon.sms.service;

import com.aliyuncs.exceptions.ClientException;
import com.fasterxml.jackson.core.JsonProcessingException;

/**
 * @author xce
 * @date 2020/3/19  16:58
 */
public interface SmsService {

  /**
   * 发送短信验证码
   * @param code 验证码
   * @param phone 手机号
   * @throws ClientException 阿里云客户端异常.
   */
  void sendSmsCode(String phone,String code) throws ClientException, JsonProcessingException;
}
